
import printMe from './print.js';
import css from './index.css';	


function component() {
  console.log(process.env.NODE_ENV);
  var element = document.createElement('div'); 
  var btn = document.createElement('button');
  // var element = document.createElement('pre');

  element.innerHTML = _.join(['Hello', 'webpack11'], ' ');


  btn.innerHTML = 'Click me and check the console!111'; 
  // btn.onclick = Print.bind(null, 'Hello webpack!');
  element.appendChild(btn);
  console.log(2)

  return element;
}

document.body.appendChild(component());
 // if ('serviceWorker' in navigator) {
 //   window.addEventListener('load', () => {
 //     navigator.serviceWorker.register('/sw.js').then(registration => {
 //       console.log('SW registered: ', registration);
 //     }).catch(registrationError => {
 //       console.log('SW registration failed: ', registrationError);
 //     });
 //   });
 // }